OTInitNBPAddress
Initializes an NBP address structure.C INTERFACE
size_t OTInitNBPAddress(NBPAddress* address, const char* name);C++ INTERFACES
None. C++ applications use the C interface to this function.PARAMETERS
address
- A pointer to the NBP address structure you wish to initialize.
name
- A pointer to the NBP string you wish to use for the NBP name.
DESCRIPTION
TheOTInitNBPAddress
function can be used to initialize an NBP address structure with the NBP name specified in thename
parameter, which is assumed to already be in the correct string format. The function returns the size of the NBP address structure, which is the size of thefAddressType
field plus the length of the string in thename
parameter.SEE ALSO
The NBP address structure is described in the section "The NBP Address Structure," beginning on page 10-17.To initialize a DDP address, use the
OTInitDDPAddress
function (page 10-21).To initialize a combined DDPNBP address, use the
OTInitDDPNBPAddress
function (page 10-23).